<template>
  <div class="Subunit-box">
    <component :is="getchild" :info="info" />
  </div>
</template>

<script setup lang="ts">
import { computed } from 'vue';
import { useProjectStore } from '@/store';
import Subunit7Child1 from './Subunit7Child1.vue';
import Subunit7Child2 from './Subunit7Child2.vue';
import Subunit7Child3 from './Subunit7Child3.vue';
import Subunit7Child4 from './Subunit7Child4.vue';
const store = useProjectStore();
const props = defineProps({
  ModuleId: {
    type: Number,
  },
  info: {
    type: Object,
  },
});
const getchild = computed(() => {
  switch (props.ModuleId) {
    case 46:
      return Subunit7Child1;
      break;
    case 44:
      return Subunit7Child2;
      break;
    case 47:
      return Subunit7Child3;
      break;
    default:
      return Subunit7Child4;
      break;
  }
});
</script>

<style lang="less" scoped>
@import './index.less';
</style>
